Skip to content

Conversation

@daniel-lxs
Copy link
Member

@daniel-lxs daniel-lxs commented Nov 4, 2025

Ensures all tests pass before pushing, preventing broken code from entering the repository.

  • Added $pnpm_cmd run test to .husky/pre-push
  • Tests run after type checking and before changeset validation
  • Uses Turbo to execute tests across all packages in the monorepo

@daniel-lxs daniel-lxs requested review from cte, jr and mrubens as code owners November 4, 2025 17:23
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. enhancement New feature or request labels Nov 4, 2025
@roomote
Copy link

roomote bot commented Nov 4, 2025

See this task on Roo Code Cloud

Review complete. Found 1 critical issue that needs to be addressed before merging.

  • Add exit on test failure to ensure failing tests block the push

Mention @roomote in a comment to trigger your PR Fixer agent and make changes to this pull request.

@daniel-lxs daniel-lxs moved this from Triage to PR [Needs Review] in Roo Code Roadmap Nov 4, 2025
fi

$pnpm_cmd run check-types
$pnpm_cmd run test
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test command on line 20 will not block the push when tests fail. Bash continues executing after a command fails unless explicitly told to exit. The script will proceed to check changesets and complete the hook even if tests fail, allowing broken code to be pushed.

Suggested change
$pnpm_cmd run test
$pnpm_cmd run test || exit 1

Fix it with Roo Code or mention @roomote and request a fix.

@daniel-lxs daniel-lxs closed this Nov 4, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Nov 4, 2025
@github-project-automation github-project-automation bot moved this from PR [Needs Review] to Done in Roo Code Roadmap Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request PR - Needs Review size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants